//
//  APIs.h
//  YaDiuDiu
//
//  Created by Zephyr on 2017/9/18.
//  Copyright © 2017年 jy. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YDDUser.h"

@interface YDDAPIs : NSObject

+ (instancetype)share;

@property (copy, nonatomic) NSString *userID;
@property (copy, nonatomic) NSString *token;

@property (strong, nonatomic) YDDUser *yUser;

/**
 上传图片

 @param imgData 图片数据
 */
+ (void)uploadImage:(NSData *)imgData
            success:(void(^)(NSString *imagePath, NSString *errMsg))success
            failure:(void(^)(NSError * error))failure;

/**
 用户中心首页数据
 */
+ (void)userCenterDataSuccess:(void(^)(YDDUser *yUser, NSString *errMsg))success
                      failure:(void(^)(NSError * error))failure;

@end
